<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
     <f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{auditBestChooseList.firstResult}"></f:viewParam>
	   	<f:viewParam name="moduleName" value="择优选取结果审核"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<p:panel id="searchResult">
				<f:facet name="header">择优选取未审核公告</f:facet>
				<p:dataTable value="#{auditBestChooseList.resultList}" var="_bulletin">
					
					<p:column>
						<f:facet name="header">项目名称</f:facet>
						#{_bulletin.projectName}
					</p:column>
					
					<p:column width="60">
						<f:facet name="header">选取方式</f:facet>
						#{_bulletin.wayOfChoose.typeName}
					</p:column>
					<p:column sortBy="#{_bulletin.buyer.cnname}">
						<f:facet name="header">采购单位</f:facet>
						#{_bulletin.buyer.cnname}
					</p:column>
					
					<p:column width="130">
						<f:facet name="header">报名截止时间</f:facet>
						<h:outputText value="#{_bulletin.endingApplyTime}"  >
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
						</h:outputText>
					</p:column>
					
					<p:column width="60">
						<f:facet name="header">状态</f:facet>
						<ui:include src="/WEB-INF/templates/outputBoolean.xhtml">
							<ui:param name="booleanValue" value="#{_bulletin.auditResult}" />
						</ui:include>
					</p:column>
					<p:column >
						<f:facet name="header">中选中介</f:facet>
						#{bulletinService.getBestTradeSupplierNames(_bulletin.id)}
					</p:column>
					<p:column style="text-align: center" width="60">
						<f:facet name="header">操作</f:facet>
						<p:button value="审核" outcome="BestChooseAudit.xhtml">							
							<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{auditBestChooseList}" />
			</ui:include>
			
		</h:form>
   	</ui:define>
   
 
</ui:composition>